﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using LanceZhang.Research.BLL;
using LanceZhang.Research.Model;

public partial class UserControl_DissertationParticular : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["id"] != null)
        {
            TBL_Dissertation dc = new TBL_Dissertation();
            TBL_DissertationModel d = dc.GetModelByCache(Request.QueryString["id"]);

            lblName.Text = d.DisName;
            lblISSN.Text = d.ISSN;
            liAbstract.Text = d.Abstract;
            liContent.Text = d.Content;
            lblPage.Text = d.Pages;
            lblNum.Text = d.PubYear + "年 " + d.PubPeriod + "期 " + d.PubVolume + "卷";
            hlview.Target = "_blank";
            hlview.NavigateUrl = "~/MyHonour.aspx?pid="+d.ProjectID;

            TBL_Magazine mc = new TBL_Magazine();
            TBL_MagazineModel m = mc.GetModelByCache(d.ISSN);
            lblMagzine.Text = m.MagezineName;
            lblLevel.Text = m.LevelName;
            lblPublisher.Text = m.Publisher;

            TBL_User uc = new TBL_User();
            BulletedList1.DataSource=uc.GetList(" UserID in (Select UserID from TBL_ProjectMember where ProjectID='"+d.ProjectID+"')");
            BulletedList1.DataTextField = "UserName";
            BulletedList1.DataValueField = "UserID";
            BulletedList1.DataBind();
        }

    }
    protected void BulletedList1_Click(object sender, BulletedListEventArgs e)
    {

    }
}
